package com.client.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户浏览历史表
 * </p>
 *
 * @author ckick
 * @since 2025-09-20 08:28:54
 */
@Getter
@Setter
@TableName("browse_history")
public class BrowseHistory {

    /**
     * 浏览记录ID
     */
    @TableId(value = "history_id", type = IdType.AUTO)
    private Integer historyId;

    /**
     * 浏览用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 被浏览词条ID
     */
    @TableField("entry_id")
    private Integer entryId;

    /**
     * 浏览时间
     */
    @TableField("browse_time")
    private Date browseTime;

    /**
     * 词条名称
     */
    @TableField(exist = false)
    private String entryName;

    /**
     * 点赞次数
     */
    @TableField(exist = false)
    private Integer likes;

    /**
     * 收藏次数
     */
    @TableField(exist = false)
    private Integer collects;
}
